<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "{{%project}}".
 *
 * @property integer $id
 * @property string $project_name
 * @property string $eqip_name
 * @property string $add_user_name
 * @property string $content
 * @property integer $status
 * @property integer $created_at
 * @property integer $updated_at
 */
class Project extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%project}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['project_name', 'eqip_name', 'add_user_name', 'content', 'created_at', 'updated_at'], 'required'],
            [['status', 'created_at', 'updated_at'], 'integer'],
            [['project_name', 'eqip_name', 'add_user_name', 'content'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '自增ID',
            'project_name' => '项目名称',
            'eqip_name' => '设备名称',
            'add_user_name' => '添加项目人',
            'content' => '内容',
            'status' => '类型',
            'created_at' => '创建时间',
            'updated_at' => '结束时间',
        ];
    }
}
